import { defineStore } from "pinia";
import { ref } from "vue";
export const useThemeStore=defineStore('theme',()=>{
    const currentTheme=ref('chalk')
    const changeTheme=()=>{
        if (currentTheme.value === 'chalk') currentTheme.value='vintage'
        else currentTheme.value = 'chalk'
    }
    return {
        changeTheme,
        currentTheme
    }
})